﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for Message
/// </summary>
public class Message {
	public enum Type {
		ERROR,
		WARNING,
		INFO
	}

	protected Message.Type messageType;
	protected string text;

	public Message.Type MessageType {
		get { return this.messageType; }
		set { this.messageType = value; }
	}

	public string Text {
		get { return this.text; }
		set { this.text = value; }
	}

	public Message() {}

	public Message(Message.Type messageType, string text) {
		this.messageType = messageType;
		this.text = text;
	}
}
